namespace Vin.Extension.Framework.AntChain.Models.Req;

public class ProductInfoReq
{
    public ProductInfoReq(string productId, string productVersion, string productName,
        long productPrice, string mainClass, string subClass, string productDetailInfo, string productUrl,
        string productBrand, string productModel)
    {
        this.ProductId = productId;
        this.ProductVersion = productVersion;
        this.ProductName = productName;
        this.ProductPrice = productPrice;
        this.MainClass = mainClass;
        this.SubClass = subClass;
        this.ProductDetailInfo = productDetailInfo;
        this.ProductUrl = productUrl;
        this.ProductBrand = productBrand;
        this.ProductModel = productModel;
    }

    /// <summary>
    /// 商户社会信用代码
    /// </summary>
    public string? MerchantId { get; set; }

    /// <summary>
    /// 商品编码，长度小于等于32位
    /// </summary>
    public string? ProductId { get; set; }

    /// <summary>
    /// 商品版本，每个商品的编码+版本 唯一确认一个产品信息，必须为自然数，如"0","1","10"等
    /// </summary>
    public string? ProductVersion { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary>
    public string? ProductName { get; set; }

    /// <summary>
    /// 商品价格，精确到分，即1234表示12.34元
    /// </summary>
    public long? ProductPrice { get; set; }

    /// <summary>
    /// 一级行业
    /// </summary>
    public string? MainClass { get; set; }

    /// <summary>
    /// 二级行业
    /// </summary>
    public string? SubClass { get; set; }

    /// <summary>
    /// 商品详情，长度小于256位
    /// </summary>
    public string? ProductDetailInfo { get; set; }

    /// <summary>
    /// 商品链接，长度小于256位
    /// </summary>
    public string? ProductUrl { get; set; }

    /// <summary>
    /// 商品品牌，长度小于64位
    /// </summary>
    public string? ProductBrand { get; set; }

    /// <summary>
    /// 商品规格，长度小于256位
    /// </summary>
    public string? ProductModel { get; set; }
}